package com.dongdongshop.service.impl;

import com.dongdongshop.mapper.TbSellerMapper;
import com.dongdongshop.pojo.TbSeller;
import com.dongdongshop.service.Seller1Service;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
@DubboService
public class Seller1ServiceImpl implements Seller1Service {
    @Resource
    private TbSellerMapper tbSellerMapper;

    @Override
    public List<TbSeller> seller1List(TbSeller tbSeller) {
        List<TbSeller> list = tbSellerMapper.selectByName1(tbSeller);
        return list;
    }

    @Override
    public TbSeller selectById(String sellerId) {
        return tbSellerMapper.selectByPrimaryKey(sellerId);
    }

    @Override
    public void shenheYes1(TbSeller tbSeller) {
        tbSellerMapper.updateByPrimaryKeySelective(tbSeller);
    }

//    @Override
//    public void shenheYes(String sellerId, String status) {
//        tbSellerMapper.shenheYes(sellerId,status);
//    }
}
